package com.itheima.service.impl;

import com.itheima.dao.OrderDao;
import com.itheima.dao.StrudentDao;
import com.itheima.service.OrderService;

public class OrderServiceImpl implements OrderService {
    //声明dao
    //1.把new干掉
     OrderDao orderDao;
    //2.给属性提供一个set方法
    public void setOrderDao(OrderDao orderDao){
        this.orderDao = orderDao;
    }
    @Override
    public void save() {
        System.out.println("setOrderDao...");
        orderDao.save();
    }
}
